<%% if <%= plural_name %>.empty? %>
  <p class="alert alert-warning">
    没有符合条件的<%= model_human_name %>
  </p>
<%% else %>
  <%%= admin_table class: "table-hover", data: {"ajax-target" => '.admin-table-detail'} do %>
    <thead>
      <tr>
        <th></th>
        <%- attributes.each do |attribute| -%>
        <th><%%= ::<%= class_name %>.human_attribute_name :<%= attribute.name %> %></th>
        <%- end -%>
      </tr>
    </thead>
    <tbody>
      <%% <%= plural_name %>.each_with_index do |<%= singular_name %>, i| %>
        <tr data-ajax-href="<%%= <%= "#{prefixed_plain_model_url}_path(#{singular_name})" %> %>">
          <td><%%= index_of_item(i, page_size) %></td>
          <%- attributes.each do |attribute| -%>
          <td><%%= <%= singular_name %>.<%= attribute.name %> %></td>
          <%- end -%>
        </tr>
      <%% end %>
    </tbody>
  <%% end %>
  <%%= paginate <%= plural_name %> %>
<%% end %>



